<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>逻辑运算符</title>
    
</head>
<body>
    <script type="text/javascript">
        var weather = 'sunny'
        var temp = 32
        if (weather === 'sunny') {
            if (temp > 30) {
                console.log('吹空调')
            }else{
                console('出去玩')
            }
        }
        // && ! 或与非
        if (weather == 'sunny' && temp > 30) {
            console.log('吹空调')
        }else if (weather == 'sunny' && temp <= 30) {
            console.log('出去玩')
        }

    </script>
</body>
</html>